﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class vp_DealerList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetTable();
        GridView1.DataBind();

    }



    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();
        dtbl1.Columns.Add("Mapping", typeof(string));
        dtbl1.Columns.Add("Name", typeof(string));
        dtbl1.Columns.Add("User Name", typeof(string));
        dtbl1.Columns.Add("User Type", typeof(string));




        dtbl1.Rows.Add("Mapping","Vinoth", "User Name1", "Agent");
        dtbl1.Rows.Add("Mapping", "Mani", "User Name2", "Resellers");
        dtbl1.Rows.Add("Mapping", "Kavi", "User Name3", "Astrologer");
        dtbl1.Rows.Add("Mapping", "Ramana", "User Name4", "Staff");

        return dtbl1;
    }
}